﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace EquipmentManagement.Domain.Entities
{
    /// <summary>
    /// 计划配置实体
    /// </summary>
    [SqlSugar.SugarTable("PlanAllocation")]
    public class PlanAllocation : BaseEntity
    {
        /// <summary>
        /// 名称
        /// </summary>
        public string Name { get; set; }
        /// <summary>
        /// 类型(点检，保养)
        /// </summary>
        public string Type { get; set; }
        /// <summary>
        /// 设备列表(外键多选）
        /// </summary>
        public string DeviceListId { get; set; }
        /// <summary>
        /// 项目表单(外键）
        /// </summary>
        public string ProjectFormId { get; set; }
        /// <summary>
        /// 开始时间
        /// </summary>
        public DateTime StartTime { get; set; }
        /// <summary>
        /// 结束时间
        /// </summary>
        public DateTime EndTime { get; set; }
        /// <summary>
        /// 频率
        /// </summary>
        public string Frequency { get; set; }
        /// <summary>
        /// 频率值
        /// </summary>
        public string FrequencyValue { get; set; }
        /// <summary>
        /// 时间
        /// </summary>
        public string Time { get; set; }
        /// <summary>
        /// 有效期
        /// </summary>
        public int PeriodOfValidity { get; set; }
        /// <summary>
        /// 操作人员（外键多选)
        /// </summary>
        public string OperationalPersonId { get; set; }
        /// <summary>
        /// 是否可用
        /// </summary>
        public bool AvailableOrNot { get; set; }
        /// <summary>
        /// 扩展字段
        /// </summary>
        [SqlSugar.SugarColumn(IsNullable = true)]
        public string? One { get; set; }

    }
}
